#!/bin/bash

# node id
TARGET=$3

# port
LOCAL=$2

# ip
IP=$1

redis-cli -h ${IP} -p ${LOCAL} cluster replicate ${TARGET}